package com.mvc.model.mb.archive;

import java.io.Serializable;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion;
import com.mvc.model.base.IdEntity;

@Entity
@Table(name="yh_base_info")
@DynamicInsert(true)
@DynamicUpdate(true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class BaseInfo extends IdEntity implements Serializable {
	private static final long serialVersionUID = -6420991708296938755L;
	private String name;// 姓名
	private String shortName;// 短名
	private String nickName;//昵称
	private String sex;//性别
	private Date birthDate;// 生日
	
	private String idcard;// 身份证号
	private String noId;//是否有身份证
	private String company;// 工作单位
	private String email;//email
	private String mobile;// 本人手机号码
	private String linkname;//联系人名称
	private String linkphone;//联系人电话
	private String rprtype;//户籍
	private String census;//户籍地址
	private String nation;// 民族
	private String nations;//少数民族
	private String bloodtype;// 血型
	private String rhblood	;// 血型RH性
	private String edu;// 教育
	private String job;// 职业
	private String marriaged;//结婚情况
	private String personId;//个人id
	
	private String payment;//医疗费用支付方式
	private String paymentremark;//其他医疗费用支付方式
	
	private String drugallergy;//药物过敏史
	private String drugallergyremark;//其他药物过敏史
	
	private String exposure;//暴露史
	private String patientState;//疾病状态
	private String state;//状态
	//既往史
	private String showdiseases;//疾病
	private String showdiseaseIds;//疾病ids
	private String transfusion;//输血
	private String trauma;//外伤
	private String showsurgery;//手术
	
	// （家族史）
	private String father;//父亲
	private String mother;//母亲
	private String children;//子女
	private String siblings;//兄弟姐妹
	
	private String genetichistory;//遗传病史
	private String disabilitieIds;//残疾情况Id
	private String disabilities;//残疾情况
	private String disabilitieRemark;//残疾情况其他
	//生活环境
	private String exhaust;//厨房排风设施
	private String fuel;//燃料类型
	private String fuelremark;//其他燃料类型
	private String livestock;//禽畜栏
	private String water;//饮水
	private String waterremark;//其他饮水
	private String wc;//厕所
	
	private String checkcardId;// 检测id
	private String followupId;//随访id
	private String doctorCode;// 医生代码
	private Date modifyDate;// 修改时间
	private Integer age;// 年龄
	private String address;// 家庭地址
	private String townshipCode;// 乡镇代码
	private String townshipName;// 乡镇名称
	private String contactDoctor;// 责任医生名称
	private String contactNurse;// 责任护士
	private String juweihuiCode;// 居委会代码
	private String juweihuiName;// 居委会名称
	private String creatfileMemId;// 建档人id
	private String creatfileMem;// 建档人
	private String creatfileDepId;// 建档部门id
	private String creatfileDep;// 建档部门名称
	private Date creatfileDate;// 建档时间
	private String homeDoctorName;// 家庭医生名字
	private String homeDoctorMoble;// 家庭医生电话
	private String vipCard;// 会员号
	private String equCard;// 会员卡号
	private Date bindingTime;// 绑定时间
	private String bindingUser;// 绑定人
	private String patientPwd;// 患者密码
	private Double bl_sbp;//基本表的左侧收缩压
	private Double bl_dbp;//基本表的左侧舒张压
	private Double br_sbp;//基本表的右侧收缩压
	private Double br_dbp;//基本表的右侧舒张压
	private String mbInfo;//慢病筛查
	private String dataSource;//数据来源
	private String historyInfo;//既往史json
	private String infoManagerState;//管理信息表状态 0：未新建 1：已新建
	private String fileState;//档案状态 0：未新建 1：已新建
	private String next_serviceDate;
	private String pictureUrl;
	private byte[] img;
	private String checkCardId;
	private Date createDate;
	private String gender;
	private String idCardType;
	private String idCardCode;
	private String rprType;
	private String zipCode;
	private String tel;
	private String mobil;
	private String contactPerson;
	private String cpTel;
	private String cpMobile;
	private String cdInfo;
	private String cnInfo;
	private String fmhHtn;
	private String fmhDm;
	private String fmhChd;
	private String fmhCa;
	private String fmhFat;
	private String fmhCancer;
	private String fmhCopd;
	private String cancerDetail;
	private String chronic;
	private String stateFlag;
	private String maxBp;
	private String dmValue;
	private String remark;
	private String isReport;
	private String clanOne;
	private String clanOneMoble;
	private String clanTwo;
	private String clanTwoMoble;
	private String peopleFiling;
	private String medicalInsurance;
	private String healthCard;

	private Boolean isHave;
	private String appLocalPersonId;
	private Long appLocalId;
	private Integer respCode;
	public String getName() {
		return name;
	}
	public String getShortName() {
		return shortName;
	}
	public String getNickName() {
		return nickName;
	}
	public String getSex() {
		return sex;
	}
	public Date getBirthDate() {
		return birthDate;
	}
	public String getIdcard() {
		return idcard;
	}
	public String getNoId() {
		return noId;
	}
	public String getCompany() {
		return company;
	}
	public String getEmail() {
		return email;
	}
	public String getMobile() {
		return mobile;
	}
	public String getLinkname() {
		return linkname;
	}
	public String getLinkphone() {
		return linkphone;
	}
	public String getRprtype() {
		return rprtype;
	}
	public String getCensus() {
		return census;
	}
	public String getNation() {
		return nation;
	}
	public String getNations() {
		return nations;
	}
	public String getBloodtype() {
		return bloodtype;
	}
	public String getRhblood() {
		return rhblood;
	}
	public String getEdu() {
		return edu;
	}
	public String getJob() {
		return job;
	}
	public String getMarriaged() {
		return marriaged;
	}
	public String getPersonId() {
		return personId;
	}
	public String getPayment() {
		return payment;
	}
	public String getPaymentremark() {
		return paymentremark;
	}
	public String getDrugallergy() {
		return drugallergy;
	}
	public String getDrugallergyremark() {
		return drugallergyremark;
	}
	public String getExposure() {
		return exposure;
	}
	public String getPatientState() {
		return patientState;
	}
	public String getState() {
		return state;
	}
	public String getShowdiseases() {
		return showdiseases;
	}
	public String getShowdiseaseIds() {
		return showdiseaseIds;
	}
	public String getTransfusion() {
		return transfusion;
	}
	public String getTrauma() {
		return trauma;
	}
	public String getShowsurgery() {
		return showsurgery;
	}
	public String getFather() {
		return father;
	}
	public String getMother() {
		return mother;
	}
	public String getChildren() {
		return children;
	}
	public String getSiblings() {
		return siblings;
	}
	public String getGenetichistory() {
		return genetichistory;
	}
	public String getDisabilitieIds() {
		return disabilitieIds;
	}
	public String getDisabilities() {
		return disabilities;
	}
	public String getDisabilitieRemark() {
		return disabilitieRemark;
	}
	public String getExhaust() {
		return exhaust;
	}
	public String getFuel() {
		return fuel;
	}
	public String getFuelremark() {
		return fuelremark;
	}
	public String getLivestock() {
		return livestock;
	}
	public String getWater() {
		return water;
	}
	public String getWaterremark() {
		return waterremark;
	}
	public String getWc() {
		return wc;
	}
	public String getCheckcardId() {
		return checkcardId;
	}
	public String getFollowupId() {
		return followupId;
	}
	public String getDoctorCode() {
		return doctorCode;
	}
	public Date getModifyDate() {
		return modifyDate;
	}
	public Integer getAge() {
		return age;
	}
	public String getAddress() {
		return address;
	}
	public String getTownshipCode() {
		return townshipCode;
	}
	public String getTownshipName() {
		return townshipName;
	}
	public String getContactDoctor() {
		return contactDoctor;
	}
	public String getContactNurse() {
		return contactNurse;
	}
	public String getJuweihuiCode() {
		return juweihuiCode;
	}
	public String getJuweihuiName() {
		return juweihuiName;
	}
	public String getCreatfileMemId() {
		return creatfileMemId;
	}
	public String getCreatfileMem() {
		return creatfileMem;
	}
	public String getCreatfileDepId() {
		return creatfileDepId;
	}
	public String getCreatfileDep() {
		return creatfileDep;
	}
	public Date getCreatfileDate() {
		return creatfileDate;
	}
	public String getHomeDoctorName() {
		return homeDoctorName;
	}
	public String getHomeDoctorMoble() {
		return homeDoctorMoble;
	}
	public String getVipCard() {
		return vipCard;
	}
	public String getEquCard() {
		return equCard;
	}
	public Date getBindingTime() {
		return bindingTime;
	}
	public String getBindingUser() {
		return bindingUser;
	}
	public String getPatientPwd() {
		return patientPwd;
	}
	public Double getBl_sbp() {
		return bl_sbp;
	}
	public Double getBl_dbp() {
		return bl_dbp;
	}
	public Double getBr_sbp() {
		return br_sbp;
	}
	public Double getBr_dbp() {
		return br_dbp;
	}
	public String getMbInfo() {
		return mbInfo;
	}
	public String getDataSource() {
		return dataSource;
	}
	public String getHistoryInfo() {
		return historyInfo;
	}
	public String getInfoManagerState() {
		return infoManagerState;
	}
	public String getFileState() {
		return fileState;
	}
	public String getNext_serviceDate() {
		return next_serviceDate;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}
	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}
	public void setNoId(String noId) {
		this.noId = noId;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public void setLinkname(String linkname) {
		this.linkname = linkname;
	}
	public void setLinkphone(String linkphone) {
		this.linkphone = linkphone;
	}
	public void setRprtype(String rprtype) {
		this.rprtype = rprtype;
	}
	public void setCensus(String census) {
		this.census = census;
	}
	public void setNation(String nation) {
		this.nation = nation;
	}
	public void setNations(String nations) {
		this.nations = nations;
	}
	public void setBloodtype(String bloodtype) {
		this.bloodtype = bloodtype;
	}
	public void setRhblood(String rhblood) {
		this.rhblood = rhblood;
	}
	public void setEdu(String edu) {
		this.edu = edu;
	}
	public void setJob(String job) {
		this.job = job;
	}
	public void setMarriaged(String marriaged) {
		this.marriaged = marriaged;
	}
	public void setPersonId(String personId) {
		this.personId = personId;
	}
	public void setPayment(String payment) {
		this.payment = payment;
	}
	public void setPaymentremark(String paymentremark) {
		this.paymentremark = paymentremark;
	}
	public void setDrugallergy(String drugallergy) {
		this.drugallergy = drugallergy;
	}
	public void setDrugallergyremark(String drugallergyremark) {
		this.drugallergyremark = drugallergyremark;
	}
	public void setExposure(String exposure) {
		this.exposure = exposure;
	}
	public void setPatientState(String patientState) {
		this.patientState = patientState;
	}
	public void setState(String state) {
		this.state = state;
	}
	public void setShowdiseases(String showdiseases) {
		this.showdiseases = showdiseases;
	}
	public void setShowdiseaseIds(String showdiseaseIds) {
		this.showdiseaseIds = showdiseaseIds;
	}
	public void setTransfusion(String transfusion) {
		this.transfusion = transfusion;
	}
	public void setTrauma(String trauma) {
		this.trauma = trauma;
	}
	public void setShowsurgery(String showsurgery) {
		this.showsurgery = showsurgery;
	}
	public void setFather(String father) {
		this.father = father;
	}
	public void setMother(String mother) {
		this.mother = mother;
	}
	public void setChildren(String children) {
		this.children = children;
	}
	public void setSiblings(String siblings) {
		this.siblings = siblings;
	}
	public void setGenetichistory(String genetichistory) {
		this.genetichistory = genetichistory;
	}
	public void setDisabilitieIds(String disabilitieIds) {
		this.disabilitieIds = disabilitieIds;
	}
	public void setDisabilities(String disabilities) {
		this.disabilities = disabilities;
	}
	public void setDisabilitieRemark(String disabilitieRemark) {
		this.disabilitieRemark = disabilitieRemark;
	}
	public void setExhaust(String exhaust) {
		this.exhaust = exhaust;
	}
	public void setFuel(String fuel) {
		this.fuel = fuel;
	}
	public void setFuelremark(String fuelremark) {
		this.fuelremark = fuelremark;
	}
	public void setLivestock(String livestock) {
		this.livestock = livestock;
	}
	public void setWater(String water) {
		this.water = water;
	}
	public void setWaterremark(String waterremark) {
		this.waterremark = waterremark;
	}
	public void setWc(String wc) {
		this.wc = wc;
	}
	public void setCheckcardId(String checkcardId) {
		this.checkcardId = checkcardId;
	}
	public void setFollowupId(String followupId) {
		this.followupId = followupId;
	}
	public void setDoctorCode(String doctorCode) {
		this.doctorCode = doctorCode;
	}
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public void setTownshipCode(String townshipCode) {
		this.townshipCode = townshipCode;
	}
	public void setTownshipName(String townshipName) {
		this.townshipName = townshipName;
	}
	public void setContactDoctor(String contactDoctor) {
		this.contactDoctor = contactDoctor;
	}
	public void setContactNurse(String contactNurse) {
		this.contactNurse = contactNurse;
	}
	public void setJuweihuiCode(String juweihuiCode) {
		this.juweihuiCode = juweihuiCode;
	}
	public void setJuweihuiName(String juweihuiName) {
		this.juweihuiName = juweihuiName;
	}
	public void setCreatfileMemId(String creatfileMemId) {
		this.creatfileMemId = creatfileMemId;
	}
	public void setCreatfileMem(String creatfileMem) {
		this.creatfileMem = creatfileMem;
	}
	public void setCreatfileDepId(String creatfileDepId) {
		this.creatfileDepId = creatfileDepId;
	}
	public void setCreatfileDep(String creatfileDep) {
		this.creatfileDep = creatfileDep;
	}
	public void setCreatfileDate(Date creatfileDate) {
		this.creatfileDate = creatfileDate;
	}
	public void setHomeDoctorName(String homeDoctorName) {
		this.homeDoctorName = homeDoctorName;
	}
	public void setHomeDoctorMoble(String homeDoctorMoble) {
		this.homeDoctorMoble = homeDoctorMoble;
	}
	public void setVipCard(String vipCard) {
		this.vipCard = vipCard;
	}
	public void setEquCard(String equCard) {
		this.equCard = equCard;
	}
	public void setBindingTime(Date bindingTime) {
		this.bindingTime = bindingTime;
	}
	public void setBindingUser(String bindingUser) {
		this.bindingUser = bindingUser;
	}
	public void setPatientPwd(String patientPwd) {
		this.patientPwd = patientPwd;
	}
	public void setBl_sbp(Double bl_sbp) {
		this.bl_sbp = bl_sbp;
	}
	public void setBl_dbp(Double bl_dbp) {
		this.bl_dbp = bl_dbp;
	}
	public void setBr_sbp(Double br_sbp) {
		this.br_sbp = br_sbp;
	}
	public void setBr_dbp(Double br_dbp) {
		this.br_dbp = br_dbp;
	}
	public void setMbInfo(String mbInfo) {
		this.mbInfo = mbInfo;
	}
	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}
	public void setHistoryInfo(String historyInfo) {
		this.historyInfo = historyInfo;
	}
	public void setInfoManagerState(String infoManagerState) {
		this.infoManagerState = infoManagerState;
	}
	public void setFileState(String fileState) {
		this.fileState = fileState;
	}
	public void setNext_serviceDate(String next_serviceDate) {
		this.next_serviceDate = next_serviceDate;
	}
	public String getPictureUrl() {
		return pictureUrl;
	}
	public void setPictureUrl(String pictureUrl) {
		this.pictureUrl = pictureUrl;
	}
	@Transient
	public byte[] getImg() {
		return img;
	}
	@Transient
	public void setImg(byte[] img) {
		this.img = img;
	}
	@Transient
	public String getCheckCardId() {
		return checkCardId;
	}
	@Transient
	public Date getCreateDate() {
		return createDate;
	}
	@Transient
	public String getGender() {
		return gender;
	}
	@Transient
	public String getIdCardType() {
		return idCardType;
	}
	@Transient
	public String getIdCardCode() {
		return idCardCode;
	}
	@Transient
	public String getRprType() {
		return rprType;
	}
	@Transient
	public String getZipCode() {
		return zipCode;
	}
	@Transient
	public String getTel() {
		return tel;
	}
	@Transient
	public String getMobil() {
		return mobil;
	}
	@Transient
	public String getContactPerson() {
		return contactPerson;
	}
	@Transient
	public String getCpTel() {
		return cpTel;
	}
	@Transient
	public String getCpMobile() {
		return cpMobile;
	}
	@Transient
	public String getCdInfo() {
		return cdInfo;
	}
	@Transient
	public String getCnInfo() {
		return cnInfo;
	}
	@Transient
	public String getFmhHtn() {
		return fmhHtn;
	}
	@Transient
	public String getFmhDm() {
		return fmhDm;
	}
	@Transient
	public String getFmhChd() {
		return fmhChd;
	}
	@Transient
	public String getFmhCa() {
		return fmhCa;
	}
	@Transient
	public String getFmhFat() {
		return fmhFat;
	}
	@Transient
	public String getFmhCancer() {
		return fmhCancer;
	}
	@Transient
	public String getFmhCopd() {
		return fmhCopd;
	}
	@Transient
	public String getCancerDetail() {
		return cancerDetail;
	}
	@Transient
	public String getChronic() {
		return chronic;
	}
	@Transient
	public String getStateFlag() {
		return stateFlag;
	}
	@Transient
	public String getMaxBp() {
		return maxBp;
	}
	@Transient
	public String getDmValue() {
		return dmValue;
	}
	@Transient
	public String getRemark() {
		return remark;
	}
	@Transient
	public String getIsReport() {
		return isReport;
	}
	@Transient
	public String getClanOne() {
		return clanOne;
	}
	@Transient
	public String getClanOneMoble() {
		return clanOneMoble;
	}
	@Transient
	public String getClanTwo() {
		return clanTwo;
	}
	@Transient
	public String getClanTwoMoble() {
		return clanTwoMoble;
	}
	@Transient
	public String getPeopleFiling() {
		return peopleFiling;
	}
	@Transient
	public String getMedicalInsurance() {
		return medicalInsurance;
	}
	@Transient
	public String getHealthCard() {
		return healthCard;
	}
	@Transient
	public void setCheckCardId(String checkCardId) {
		this.checkCardId = checkCardId;
	}
	@Transient
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	@Transient
	public void setGender(String gender) {
		this.gender = gender;
	}
	@Transient
	public void setIdCardType(String idCardType) {
		this.idCardType = idCardType;
	}
	@Transient
	public void setIdCardCode(String idCardCode) {
		this.idCardCode = idCardCode;
	}
	@Transient
	public void setRprType(String rprType) {
		this.rprType = rprType;
	}
	@Transient
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	@Transient
	public void setTel(String tel) {
		this.tel = tel;
	}
	@Transient
	public void setMobil(String mobil) {
		this.mobil = mobil;
	}
	@Transient
	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}
	@Transient
	public void setCpTel(String cpTel) {
		this.cpTel = cpTel;
	}
	@Transient
	public void setCpMobile(String cpMobile) {
		this.cpMobile = cpMobile;
	}
	@Transient
	public void setCdInfo(String cdInfo) {
		this.cdInfo = cdInfo;
	}
	@Transient
	public void setCnInfo(String cnInfo) {
		this.cnInfo = cnInfo;
	}
	@Transient
	public void setFmhHtn(String fmhHtn) {
		this.fmhHtn = fmhHtn;
	}
	@Transient
	public void setFmhDm(String fmhDm) {
		this.fmhDm = fmhDm;
	}
	@Transient
	public void setFmhChd(String fmhChd) {
		this.fmhChd = fmhChd;
	}
	@Transient
	public void setFmhCa(String fmhCa) {
		this.fmhCa = fmhCa;
	}
	@Transient
	public void setFmhFat(String fmhFat) {
		this.fmhFat = fmhFat;
	}
	@Transient
	public void setFmhCancer(String fmhCancer) {
		this.fmhCancer = fmhCancer;
	}
	@Transient
	public void setFmhCopd(String fmhCopd) {
		this.fmhCopd = fmhCopd;
	}
	@Transient
	public void setCancerDetail(String cancerDetail) {
		this.cancerDetail = cancerDetail;
	}
	@Transient
	public void setChronic(String chronic) {
		this.chronic = chronic;
	}
	@Transient
	public void setStateFlag(String stateFlag) {
		this.stateFlag = stateFlag;
	}
	@Transient
	public void setMaxBp(String maxBp) {
		this.maxBp = maxBp;
	}
	@Transient
	public void setDmValue(String dmValue) {
		this.dmValue = dmValue;
	}
	@Transient
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Transient
	public void setIsReport(String isReport) {
		this.isReport = isReport;
	}
	@Transient
	public void setClanOne(String clanOne) {
		this.clanOne = clanOne;
	}
	@Transient
	public void setClanOneMoble(String clanOneMoble) {
		this.clanOneMoble = clanOneMoble;
	}
	@Transient
	public void setClanTwo(String clanTwo) {
		this.clanTwo = clanTwo;
	}
	@Transient
	public void setClanTwoMoble(String clanTwoMoble) {
		this.clanTwoMoble = clanTwoMoble;
	}
	@Transient
	public void setPeopleFiling(String peopleFiling) {
		this.peopleFiling = peopleFiling;
	}
	@Transient
	public void setMedicalInsurance(String medicalInsurance) {
		this.medicalInsurance = medicalInsurance;
	}
	@Transient
	public void setHealthCard(String healthCard) {
		this.healthCard = healthCard;
	}
	public String getAppLocalPersonId() {
		return appLocalPersonId;
	}
	public void setAppLocalPersonId(String appLocalPersonId) {
		this.appLocalPersonId = appLocalPersonId;
	}
	@Transient
	public Long getAppLocalId() {
		return appLocalId;
	}
	@Transient
	public void setAppLocalId(Long appLocalId) {
		this.appLocalId = appLocalId;
	}
	@Transient
	public Boolean getIsHave() {
		return isHave;
	}
	@Transient
	public Integer getRespCode() {
		return respCode;
	}
	@Transient
	public void setIsHave(Boolean isHave) {
		this.isHave = isHave;
	}
	@Transient
	public void setRespCode(Integer respCode) {
		this.respCode = respCode;
	}
	
}